package com.zhang.apidriver.service.impl;

import com.zhang.apidriver.remote.ServiceDriverClient;
import com.zhang.apidriver.service.UserService;
import com.zhang.internalcommon.dto.DriverUser;
import com.zhang.internalcommon.dto.DriverUserWorkStatus;
import com.zhang.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-12
 */
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private ServiceDriverClient serviceDriverClient;

	@Override
	public ResponseResult updateUser(DriverUser user) {
		ResponseResult responseResult = serviceDriverClient.updateUser(user);
		return responseResult;
	}

	@Override
	public ResponseResult changeWorkStatus(DriverUserWorkStatus driverUserWorkStatus) {
		ResponseResult responseResult = serviceDriverClient.changeWorkStatus(driverUserWorkStatus);
		return responseResult;
	}

	@Override
	public ResponseResult getDriverCarBindingRelationship(String phone) {
		return serviceDriverClient.getDriverCarBindingRelationship(phone);
	}
}
